import { makeAutoObservable } from 'mobx'
class CounterStore {
	count = 0
	list = [] as number[]
	constructor() {
		makeAutoObservable(this) // 自动绑定
	}
	increment() {
		this.count++
	}
	decrement() {
		this.count--
	}
}
const counterStore = new CounterStore()
export default counterStore
